package com.cloud.common;

import java.io.Serializable;

/**
 * @Author wangjian (jian.wang@bertelsmann.com.cn)
 * @Date 2016/12/30 15:38
 */
public class CommonResponse<T> implements Serializable {

    private static final long serialVersionUID = 5454155825314639342L;
    private Long timeStamp;
    private Long status = Long.valueOf(0L);
    private T results;

    public CommonResponse() {
        /* empty */
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public T getResults() {
        return results;
    }

    public void setResults(T results) {
        this.results = results;
    }

    @Override
    public String toString() {
        return "CommonResponse{" +
                "timeStamp=" + timeStamp +
                ", status=" + status +
                ", results=" + results +
                '}';
    }
}
